from django.conf.urls import url
from app1 import views

urlpatterns = [
    url(r'^test1/$', views.TestView1.as_view()),
    url(r'^usernames/$', views.ListUsers.as_view()),
    url(r'^helloworld/$', views.hello_world),
    url(r'^today/$', views.hello_today),
    url(r'^schema/$', views.schema_decorator_test),
    # url(r'^users/$', views.UserList.as_view(queryset=User.objects.all(), serializer=UserSirializers), name='user-list'),
]

from myapp.views import UserViewSet
from rest_framework.routers import DefaultRouter

router = DefaultRouter()
router.register(r'users', UserViewSet, base_name='user')
urlpatterns = router.urls
